<!DOCTYPE html>
<html>
<head>
    <title>用户管理</title>
    <meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="Author" content="larry" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="../../statics/common/cascader/cascader/cascader.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/layui.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/autocomplete.css">
<link rel="stylesheet" type="text/css" href="../../statics/common/layui/css/soulTable.css">
<link rel="stylesheet" type="text/css" href="../../statics/plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/common.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="../../statics/css/list-search-table.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/layui-soul-table/docs/soulTable.css" media="all"/>-->
<script type="text/javascript" src="../../statics/plugins/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/common/lib/vue.min.js"></script>
<script type="text/javascript" src="../../statics/plugins/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="../../statics/common/layui/layui.all.js"></script>
<script type="text/javascript" src="../../statics/common/js/axios.min.js"></script>
<script type="text/javascript" src="../../statics/common/js/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/common.js"></script>
<script type="text/javascript" src="../../statics/js/upload.js"></script>
<script type="text/javascript" src="../../statics/common/step/steps.js"></script>
<link rel="stylesheet" href="../../statics/css/jxcPublicAll.css"  media="all">
<link href="../../statics/common/photoviewer/dist/photoviewer.css" rel="stylesheet">
<link rel="stylesheet" href="../../statics/common/step/steps.css">
<!--<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.css" media="all">-->
<link rel="stylesheet" href="../../statics/js/modules/cropper/cropper.css" media="all">
<link rel="stylesheet" type="text/css" href="../../statics/css/viewer.min.css">
<!--<script src="https://cdnjs.cloudflare.com/ajax/libs/cropperjs/1.5.7/cropper.min.js"></script>-->
<script src="../../statics/js/modules/cropper/cropper.min.js"></script>
<script src="../../statics/common/photoviewer/dist/photoviewer.js"></script>
<script src="../../statics/common/layui/autocomplete.js"></script>
<script  src="../../statics/js/modules/viewer/viewer.min.js"></script>
<script src="../../statics/common/print-js/print.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../statics/common/print-js/print.min.css">
<script type="text/javascript" src="../../statics/common/xmselect/xm-select.js"></script>
<script type="text/javascript" src="../../statics/js/searchview.js"></script>
<script type="text/javascript" src="../../statics/js/tableedit.js"></script>

<!--<script type="text/javascript" src="http://api.map.baidu.com/api?v=1.0&type=webgl&ak=eo4XeZhRKHsQ0NOe6u6NkKscmRsk416B"></script>-->

<!-- 引入组件库 -->
<link rel="stylesheet" type="text/css" href="../../statics/css/index.css">






    <style>
        .layui-input-block {
            margin-left: 132px !important;
        }
        .form-group {
            margin-bottom: 15px !important;
        }
        .layui-form-label {
            width: 130px !important;
        }
        .layui-input-block {
            margin-left: 162px !important;
        }
    </style>
</head>
<body class="ren-body">
<div id="rrapp" v-cloak>

<table class="layui-hide" id="grid" lay-filter="grid"></table>

<!-- 表单 -->
<form v-show="showForm" class="layui-form ren-form" id="editForm">
    <div class="form-group">
        <label class="layui-form-label"><span style="color:red">*</span>原密码:</label>
        <div class="layui-input-inline">
            <input type="password" id = "password" lay-verify="required" v-model="user.password" placeholder="请输入原密码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="layui-form-label"><span style="color:red">*</span>新密码:</label>
        <div class="layui-input-inline">
            <input type="password" lay-verify="required" id="newPassword" v-model="user.newPassword" placeholder="请输入新密码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="layui-form-label"><span style="color:red">*</span>确认新密码:</label>
        <div class="layui-input-inline">
            <input type="password" lay-verify="required" id="resPassword" v-model="user.resPassword" placeholder="确认新密码" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="form-group">
        <label class="layui-form-label"></label>
        <div class="layui-input-inline">
            <button class="layui-btn" lay-submit  lay-filter="saveOrUpdate">确认</button>
            <a class="layui-btn layui-btn-normal" @click="cancel" >取消</a>
        </div>

    </div>
</form>

<!-- 详情 -->
<div v-show="detailForm" class="layui-form ren-form" id="detailForm">
    <div  class="jxc-detail layui-form ren-form" >
        <section class="jxc-section">
                <div class="card">
                    <div class="layui-row form-group">
                        <div class="column layui-col-xs6">
                            <label class="layui-form-label">用户名称:</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required" v-model="user.username" autocomplete="off" placeholder="登录账号" class="layui-input" readonly>
                            </div>
                        </div>
                        <div class="column layui-col-xs6">
                            <label class="layui-form-label">邮箱:</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required|email" v-model="user.email" autocomplete="off" placeholder="邮箱" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>
                    <div class="layui-row form-group">
                        <div class="column layui-col-xs6">
                            <label class="layui-form-label">所属部门:</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required" style="cursor:pointer;" v-model="user.deptName"   placeholder="所属部门" class="layui-input" readonly>
                            </div>
                        </div>
                        <div class="column layui-col-xs6">
                            <label class="layui-form-label">手机号:</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required|phone" v-model="user.mobile" autocomplete="off" placeholder="手机号" class="layui-input" readonly>
                            </div>
                        </div>
                    </div>

                    <div class="form-group" style="text-align: center;">
                        <div class="layui-input-inline">
                            <button class="layui-btn search-btn" lay-submit  @click="update">修改密码</button>
                        </div>
                    </div>
                </div>
        </section>
    </div>
</div>
</div>

<script type="text/javascript" src="../../statics/js/modules/sys/loginuser.js"></script>
</body>
</html>